import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
// 导入样式
import './assets/css/global.css';
//导入字体
import './assets/fonts/iconfont.css'

import axios from 'axios';
//echarts
import * as echarts from 'echarts'


axios.defaults.baseURL = 'http://localhost:8089/'
Vue.prototype.$http = axios
Vue.prototype.$echarts = echarts

axios.interceptors.request.use(config=>{
	config.headers.token = window.sessionStorage.getItem('token');
	return config;
})  


Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
